fix mkpatches for creating correctly linux-2.6-xen.patch
authorvhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Thu, 8 Dec 2005 08:09:09 +0000 (08:09 +0000)
committervhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Thu, 8 Dec 2005 08:09:09 +0000 (08:09 +0000)
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
buildconfigs/Rules.mk

index cb27b0cb99945d1ad850b51f82f1fb68d3d8613d..26ee89472b65e5cf490144c1dfacee0fb5ad0cff 100644 (file)
@@ -21,6 +21,7 @@ endif
 
 # Expand Linux series to Linux version
 LINUX_SERIES   ?= 2.6
+LINUX_VER      ?= $(shell grep "^LINUX_VER" buildconfigs/mk.linux-2.6-xen | sed -e 's/.*=[ ]*//')
 
 # Setup Linux search path
 LINUX_SRC_PATH ?= .:..
@@ -109,6 +110,8 @@ endif
 %-config:
        $(MAKE) -f buildconfigs/mk.$* config
 
+linux-2.6-xen.patch: linux-$(LINUX_VER)-xen.patch
+
 %-xen.patch: ref-%/.valid-ref
        rm -rf tmp-$@
        cp -al $(<D) tmp-$@